<div id="wallContent">
    <h2>Halaman Rumah</h2>
    <form id="wallForm" method="POST" action="<?php echo $this->createUrl('home/postwall')?>">
        <textarea name="wall" cols="30" rows="5"></textarea><br />
        <input type="submit" value="POST!" />
    </form>
    <div id="wallList">
    <?php foreach($walls as $wall) :?>
        <div class="myWall">
            <div class="myWallCommentPhoto"><img src="<?php if($wall->getPoster()->getProfilePicture() != NULL) echo $wall->getPoster()->getProfilePicture()->getUrl();?>" alt="" /></div>
            <div class="myWallCommentPoster"><a href="<?php echo $this->createUrl('profile/view/' . $wall->getPoster()->id);?>"> <?php echo $wall->getPoster()->fullname;?></a></div>
            <div class="myWallCommentContent"><?php echo $wall->content?></div>
                <?php foreach($wall->getChildWalls() as $w) : ?>
                <div class="myWallComment">
                    <div class="myWallCommentPhoto"><img src="<?php if($w->getPoster()->getProfilePicture() != NULL) echo $w->getPoster()->getProfilePicture()->getUrl();?>" alt="" /></div>
                    <div class="myWallCommentPoster"><a href="<?php echo $this->createUrl('profile/view/' . $w->getPoster()->id);?>"> <?php echo $w->getPoster()->fullname;?></a></div>
                    <div class="myWallCommentContent"><?php echo $w->content?></div>
                </div>
                <?php endforeach;?>
            <div class="myWallComment">
                <form action="<?php echo $this->createUrl('profile/commentwall/' . $wall->id);?>" method="post">
                    <input class="commentWallText" type="text" name="commentwall" value="Write your comment..." onfocus="this.value=''" onblur="this.value='Write your comment...'" />
                </form>
            </div>
        </div>
    <?php endforeach;?>
    </div>
    <a onclick="return reload();" id="more" href="2">More</a>
    <br /><br /><br />
</div>
<?php if (count($photos) > 0 || count($users) > 0) : ?>
<div id="searchResult">
    <div id="userSearchResult">
        <h2>Hasil pencarian pengguna</h2>
        <?php foreach($users as $user) : ?>
            <div class="userSearchResultContent">
                <div>
                    <a href="<?php echo $this->createUrl('profile/view/' . $user->id)?>">
                        <img class="profilePictureThumb" src="<?php if($user->getProfilePicture() != NULL) echo $user->getProfilePicture()->getUrl();?>" alt="" />
                    </a>
                </div>
                <div>
                    <?php echo $user->getProfileLink();?>
                </div>
            </div>
        <?php endforeach;?>
    </div>
    <div id="photoSearchResult">
        <div class="dummy"></div>
        <h2>Hasil pencarian foto</h2>
        <?php foreach($photos as $photo) : ?>
        <div class="photoThumb">
            <img src="<?php echo $photo->getUrl();?>" alt="" />
        </div>
        <?php endforeach;?>
    </div>
</div>
<?php endif;?>
<div class="dummy"></div>